﻿using Academy.Core.Entities;
using System.Collections.Generic;

namespace Academy.Core.Repository
{
    public interface IUnitofwork
    {
        T Insert<T>(T item) where T : GenericEntity, new();
        void Save();
        T GetSingle<T>(int id) where T : GenericEntity;
        IEnumerable<T> GetAll<T>() where T : GenericEntity;
    }
}
